package Book;

import java.util.Arrays;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * user:likai
 * Date:2022-09-30
 * Time:10:42
 */
public class BookList {
    private Book []books =new Book[10];
    private int useSize;
    {
        books[0]=new Book("三国",69,"罗贯中","小说");
        books[1]=new Book("西游记",49,"吴承恩","小说");
        books[2]=new Book("红楼梦",59,"曹雪芹","小说");
        this.useSize=3;
    }



    public void setBooks(Book book, int curSize) {
        books[curSize]=book;
    }

    public Book[] getBooks() {
        return books;
    }

    public int getUseSize() {
        return useSize;
    }

    public void setUseSize(int useSize) {
        this.useSize = useSize;
    }
    public Book getPos(int pos){
        return books[pos];
    }
}
